﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRQDMeta.InputDto._20220112
{
    /// <summary>
    ///  获取应用商品详情
    /// </summary>
    public class MetaAppDetailInput
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        public string userid { get; set; }
        /// <summary>
        ///  应用商品ID
        /// </summary>
        [Required(ErrorMessage = "应用商品ID必传！")]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确输入应用商品ID")]
        public int fileID { get; set; }
    }
    /// <summary>
    ///  获取应用版本详情
    /// </summary>
    public class MetaAppVersionInput
    {
        /// <summary>
        ///  应用商品ID
        /// </summary>
        [Required(ErrorMessage = "应用商品ID必传！")]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确输入应用商品ID")]
        public int fileID { get; set; }
    }
    /// <summary>
    ///  获取应用版本历史列表
    /// </summary>
    public class MetaAppVersionListInput: MetaAppVersionInput
    {
        /// <summary>
        ///  版本状态 【-1=全部；1=待审核；5=已上架（默认）；6=审核未通过】
        /// </summary>
        [RegularExpression("^((-1)|[1,5,6])$", ErrorMessage = "根据要求请正确选择版本状态！")]
        public int fileStatus { get; set; } = 5;
    }
}